
import { IsEnabledMapping } from '../../Config/config'

export const CustomTableColumns = [
    {
        title: '数据表', dataIndex: 'DataSheet', rules: true, valueType: 'Select', valueEnum: [
            { value: 'user', label: '用户表' },
            { value: 'engineeringOrganizations', label: '组织机构扩展' },
        ]
    },
    { title: '获取接口', dataIndex: 'Controller', rules: true, valueType: 'Input' },
    { title: '默认参数', dataIndex: 'params', rules: true, valueType: 'Input' },
    { title: '是否可搜索', dataIndex: 'IsSearch', valueType: 'Radio', valueEnum: IsEnabledMapping },
    { title: '显示标题栏', dataIndex: 'IsTitle', valueType: 'Radio', valueEnum: IsEnabledMapping },
]


export const CustomTableOptions = [
    {
        title: '操作按钮',
        dataIndex: 'mapping',
        valueType: 'Fields',
        min: 0,
        max: 99,
        children: [
            { title: '按钮名称', dataIndex: 'ButtonName', valueType: 'Input' },
            { title: '接口地址', dataIndex: 'ApiUrl', valueType: 'Input' },
            { title: '接口参数', dataIndex: 'ApiParmas', valueType: 'Input' },
        ]
    },
]